﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Mime {
    public static class Configuration {
        private static string[] forbidRefreshDomains;
        public static string[] ForbidRefreshDomains {
            get {
                if (forbidRefreshDomains == null) {
                    var configValue = ConfigurationManager.AppSettings["ForbidRefreshDomains"];
                    if (string.IsNullOrWhiteSpace(configValue)) {
                        forbidRefreshDomains = new string[0];
                    }
                    else {
                        forbidRefreshDomains = configValue.Split(';');
                    }
                }
                return forbidRefreshDomains;
            }
        }
    }
}
